package com.ice.work.moment.facade.ticket.constant;

/**
 * 12306订票接口
 *
 * @author lenovo
 */
public interface TicketUrl {

    String BASE_12306_URL = "https://kyfw.12306.cn";
    String HOST_12306_URL = "kyfw.12306.cn";
    String HOST_360_URL = "check.huochepiao.360.cn";

    String INDEX_HTML = BASE_12306_URL + "/index/index.html";
    String ALG_URL = BASE_12306_URL + "/otn/HttpZF/GetJS";
    String LOGIN_HTML = BASE_12306_URL + "/otn/resources/login.html";

    String LOGOUT_HTML = BASE_12306_URL + "/otn/view/index.html";
    String INDEX_INIT_URL = BASE_12306_URL + "/otn/index/init";
    String LOGIN_INIT_PAGE = BASE_12306_URL + "/otn/login/init";

    String CREATE_QR_URL = BASE_12306_URL + "/passport/web/create-qr64";
    String CHECK_QR_URL = BASE_12306_URL + "/passport/web/checkqr";

    String CONF_URL = BASE_12306_URL + "/otn/login/conf";
    String UAMTK_URL = BASE_12306_URL + "/passport/web/auth/uamtk";
    String CAPTCHA_IMAGE_URL = BASE_12306_URL + "/passport/captcha/captcha-image64?login_site=E&module=login&rand=sjrand&%s&callback=jQuery191016031929034712844_1558495765312&_=%s";
    String QUERY_INIT_PAGE = BASE_12306_URL + "/otn/leftTicket/init";

    String LOGIN_URL = BASE_12306_URL + "/passport/web/login";

    String POSITION_URL = "http://check.huochepiao.360.cn/img_vcode";
    String CHECK_CAPTCHA_URL = BASE_12306_URL + "/passport/captcha/captcha-check?answer=%s&rand=sjrand&login_site=E&_=%s&callback=jQuery191016031929034712844_1558495765312";
    String USER_LOGOUT_URL = BASE_12306_URL + "/otn/login/loginOut";
    String USER_LOGIN_URL = BASE_12306_URL + "/otn/login/userLogin";
    String UAMAUTH_CLIENT_URL = BASE_12306_URL + "/otn/uamauthclient";
    String VIEW_INDEX_URL = BASE_12306_URL + "/otn/view/index.html";

    String INIT_DATA_URL = BASE_12306_URL + "/otn/index/initMy12306Api";
    String PASSWORD_URL = BASE_12306_URL + "/otn/passport?redirect=/otn/login/userLogin";

    String STATION_URL = BASE_12306_URL + "/otn/resources/js/framework/station_name.js";
    String LEFT_TICKET_URL = BASE_12306_URL
            + "/otn/leftTicket/query?leftTicketDTO.train_date=%s&leftTicketDTO.from_station=%s&leftTicketDTO.to_station=%s&purpose_codes=%s";

    String PASSENGERS_HTML = BASE_12306_URL + "/otn/view/passengers.html";

    String QUERY_PASSENGERS_URL = BASE_12306_URL + "/otn/passengers/query";
    /**
     * 360验证码识别
     */
    String CHECK_BASE64_URL = "http://localhost:9082/api/v2/getCheck";


    String leftTicketByCdn = "http://%s/otn/%s?leftTicketDTO.train_date=%s&leftTicketDTO.from_station=%s&leftTicketDTO.to_station=%s&purpose_codes=ADULT";


    String userInfo = BASE_12306_URL + "/otn/modifyUser/initQueryUserInfoApi";

    String getPassengerDTOs = BASE_12306_URL + "/otn/confirmPassenger/getPassengerDTOs";

    String submitOrderRequest = BASE_12306_URL + "/otn/leftTicket/submitOrderRequest";

    String checkOrderInfo = BASE_12306_URL + "/otn/confirmPassenger/checkOrderInfo";

    /**
     * 生成订单时需要先请求这个页面
     */
    String initDc = BASE_12306_URL + "/otn/confirmPassenger/initDc";

    String getQueueCount = BASE_12306_URL + "/otn/confirmPassenger/getQueueCount";

    String confirmSingleForQueue = BASE_12306_URL + "/otn/confirmPassenger/confirmSingleForQueue";

    String queryOrderWaitTime = BASE_12306_URL + "/otn/confirmPassenger/queryOrderWaitTime?%s";


    String browserDeviceId = BASE_12306_URL + "/otn/HttpZF/logdevice";

    String initMy12306 = BASE_12306_URL + "/otn/index/initMy12306";

    /**
     * 此处在不断的变化，如果登录不成功了，刚需要替换
     */
    String DEVICE_ID_URL = BASE_12306_URL + "/otn/HttpZF/logdevice?algID=B2RKebNdoS&hashCode=nfvYqvktjAXt1wwvF2Tc4K7f-omJt4uukmAMbK61MbM&FMQw=0&q4f3=zh-CN&VySQ=FGGs_ZzBbutJHy0J6HxoN7eQB_CVfs4d&VPIf=1&custID=133&VEek=unknown&dzuS=0&yD16=0&EOQP=49a9fbfe2beb0490836324ceb234fef4&lEnu=3232238334&jp76=52d67b2a5aa5e031084733d5006cc664&hAqN=Win32&platform=WEB&ks0Q=d22ca0b81584fbea62237b14bd04c866&TeRS=1050x1920&tOHY=24xx1080x1920&Fvje=i1l1o1s1&q5aJ=-8&wNLf=99115dfb07133750ba677d055874de87&0aew=Mozilla/5.0%20(Windows%20NT%2010.0;%20WOW64)%20AppleWebKit/537.36%20(KHTML,%20like%20Gecko)%20Chrome/74.0.3729.131%20Safari/537.36&E3gR=d6b28cb3babeb1f5171d2630d1b17f8f&timestamp={time}";

    String loginAysnSuggest = BASE_12306_URL + "/otn/login/loginAysnSuggest";

    String autoSubmitOrderRequest = BASE_12306_URL + "/otn/confirmPassenger/autoSubmitOrderRequest";


    /**
     * 验证码识别 机器学习
     */
    String getPositionByAi = "https://12306.jiedanba.cn/api/v2/img_vcode";

}
